# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-discogs-client
pkgver=2.3.0
pkgrel=0
pkgdesc="Official Python API client for Discogs"
url="https://github.com/discogs/discogs_client"
arch="noarch"
license="BSD-2-Clause"
depends="py3-oauthlib py3-requests py3-six"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/d/discogs-client/discogs-client-$pkgver.tar.gz"
builddir="$srcdir"/discogs-client-$pkgver

replaces="py-discogs-client" # for backwards compatibility
provides="py-discogs-client=$pkgver-r$pkgrel" # for backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1912c0b9a3ff5ef33bcea92e322580458b78c5ad280cfde1f1e180a096bd2afe8f0d22059b985a8efd6fe5a84b54fecbeee521ccc698c694b3d6d3e66f976afc  discogs-client-2.3.0.tar.gz"
